package com.cxm.helper.controller;

import com.cxm.helper.pojo.Config;
import com.cxm.helper.service.ConfigService;
import com.cxm.helper.util.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: chenximeng
 * @date: 2022/11/22 14:47
 */
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Autowired
    ConfigService configService;

    @GetMapping("/listChildByParentConfigName")
    public ResponseEntity listChildByParentConfigName(String configName) {
       return ResponseEntity.ok(configService.listChildByParentConfigName(configName));
    }

}
